class Animal:
    def __init__(self, name, color='red', eyes='bule'):
        self.name = name
        self.color = color
        self.__eyes = eyes

    def walk(self, n):
        print(f'{self.name} walked {n} meters')

    def eat(self, food):
        print(f'{self.name} is eating {food}!')


class Dog(Animal):
    def __init__(self):

        super().__init__('Dog', color='yellow', eyes='pink')
        self.leg = 4

    def speak(self):
        print('Dog is barking!')


class Chiken(Animal):
    def __init__(self):
        super().__init__('kun', color='black')
        self.leg = 2

    def speak(self):
        print('你干嘛!')


if __name__ == '__main__':
    dog = Dog()
    dog.walk(5)
    dog.eat('hamberger')
    dog.speak()
    print(dog.name, dog.color, dog.leg)

    chicken = Chiken()
    chicken.walk(2.5)
    chicken.speak()
    print(chicken.name, chicken.color, chicken.leg)
